package com.muyu.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: MybatisPlusConfig
 * @Author: Zirun.Xin
 * @Date: 2025/1/6 15:00
 * @Version: 1.0
 * @Description: mybatis-plus配置
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 加载分页插件
     * @return 分页插件实例
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
